﻿@model IEnumerable<B4Deal.Models.Order>
@{foreach (var item in Model)
  {           
    <tr id="trOrder_0" class="last hover">
        <td style="text-align: left; padding-left: 10px;">
            @item.TenSP
        </td>
        <td>
            @item.SoLuong
        </td>
        <td style="text-align: left;">
            @{
      String tt = "Chưa xác nhận";
      switch (item.TinhTrang)
      {
          case 0: tt = "Chưa xác nhận"; break;
          case 1: tt = "Đã xác nhận, chờ giao"; break;
          case 2: tt = "Hoàn tất"; break;
      }               
            }
            @tt
        </td>
        <td style="text-align: left;">
            @item.NgayDH
        </td>
        <td>
            <a href="javascript:void(0)" id="ViewDetail" onclick = "ViewOrders(@item.MaDH)">Chi
                tiết</a>
        </td>
    </tr>       
  }
}
